How do I use this table variable correctly in a select statement

welcome to shbcf.ru